package com.business.system.controller.api;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.business.system.service.IShopService;
import com.business.system.vo.GoodsType;
import com.business.system.vo.HomeGoodsType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


import java.util.Map;

@RestController
@RequestMapping("/system/shop")
public class ApiShopController {
    @Autowired
    private IShopService iShopService;

    //查询所有店铺的所有商品
    @PostMapping("shopAndGoods/{currentPage}/{pageSize}")
    public IPage<Map> shopAndGoods(@PathVariable Integer currentPage, @PathVariable Integer pageSize, @RequestBody HomeGoodsType HomeGoodsType){
        return iShopService.shopAndGoods(currentPage,pageSize,HomeGoodsType);
    }
}
